package com.mysoft.disconf.conf;

import org.springframework.stereotype.Service;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import com.baidu.disconf.client.common.annotations.DisconfItem;

@Service
@DisconfFile(filename = "site.conf.properties", targetDirPath = "config/properties")
public class SiteConfig {

	private String siteName;
	
	private Integer siteStatus;
	
	private String appVersion;
	
	@DisconfItem(key = "app_version", associateField = "appVersion")
	public String getAppVersion() {
	    return appVersion;
	}

	@DisconfFileItem(name = "site.name", associateField = "siteName")
	public String getSiteName() {
		return siteName;
	}

	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}

	@DisconfFileItem(name = "site.status", associateField = "siteStatus")
	public Integer getSiteStatus() {
		return siteStatus;
	}

	public void setSiteStatus(Integer siteStatus) {
		this.siteStatus = siteStatus;
	}
	
}
